import cn.whitecao.DeviceDao;
import cn.whitecao.UserDao;
import cn.whitecao.VipUserDao;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@ComponentScan("cn.whitecao")
@SuppressWarnings("all")
@EnableAsync
public class Whitecao {
	public static void main(String[] args) {
		System.out.println("订单");
		AnnotationConfigApplicationContext ac=new
				AnnotationConfigApplicationContext(Whitecao.class);
		ac.register(VipUserDao.class);
		VipUserDao vipUserDao = ac.getBean(VipUserDao.class);
		System.out.println(vipUserDao);
		DeviceDao deviceDao=  ac.getBean(DeviceDao.class);
		System.out.println(deviceDao);

	}
}
